// Final
package gen.kaynak.navitrack.charProcessingCoR;

import gen.kaynak.navitrack.MessageProcessManager;

public class WhiteSpaceHandler implements ICharHandler {
	private ICharHandler successor;

	public WhiteSpaceHandler() {
		successor = new LetterHandler();
	}

	@Override
	public void HandleRequest(char c, MessageProcessManager mpm) {
		if (Character.isWhitespace(c)) {
			mpm.getStateContextManager().processWhiteSpace(c);
		} else {
			successor.HandleRequest(c, mpm);

		}


	}

}
